import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant'
import 'vant/lib/index.css';
import register_global_obj from '../public/js/register_global_obj.js'
import my_tools from '../public/js/my_tools'
// import data_encryption from '../public/js/data_encryption'
import http from './http.js'
import CryptoJS from "crypto-js";  // AES对称加密模块
// import {JSEncrypt} from 'encryptlong'  // RSA非对称加密模块

import JSEncrypt from 'jsencrypt'
import Encrypt from 'encryptlong'

import private_key from '@/private_key.js'  // RSA私钥文件
import public_key from '@/public_key.js'  // RSA私钥文件
import fs from 'fs';

console.log(fs);

const app = createApp(App)
app.use(store).use(router).use(Vant).mount('#app')
register_global_obj.add(app,"my_tools",my_tools)
register_global_obj.add(app,"http",http)
// register_global_obj.add(app,"data_encryption",data_encryption)

const vue= app.config.globalProperties
// http({
//     method:'post',
//     url:'/ajax/api/get_machine_code',
//     data:{
//     }
// }).then(data=>{
//     console.log(data.data.aes_key);
// })


export default vue
